const {
  getBanner,
  getNotice,
  getQuestionbank,
  getTool,
  getClassification,
  getClassify,
} = require("../../../model/weixin/api");

// banner中间件
const banner = async (req, res) => {
  let data = await getBanner();
  res.send(data);
};
// notice中间件
const notice = async (req, res) => {
  let data = await getNotice();
  res.send(data);
};
// questionbank中间件
const questionbank = async (req, res) => {
  let data = await getQuestionbank();
  res.send(data);
};
// tool中间件
const tool = async (req, res) => {
  let data = await getTool();
  res.send(data);
};

// classification中间件
const classification = async (req, res) => {
  let data = await getClassification();
  res.send(data);
};

// classification中间件
const classify = async (req, res) => {
  let data = await getClassify();
  res.send(data);
};

module.exports = {
  banner,
  notice,
  questionbank,
  tool,
  classification,
  classify,
};
